package com.qf.ability.message.application;

import com.qf.ability.message.core.NettyServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * author Ken
 * create_time 2022/10/16
 */
@Component
public class NettyApplication implements CommandLineRunner {

    @Autowired
    private NettyServer nettyServer;

    @Override
    public void run(String... args) throws Exception {
        //开启Netty服务器
        nettyServer.started();
    }
}
